/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TIPOSLOGRADOURO")
public class TiposLogradouroProteu implements Serializable{

    @Id
    @Column(name="TIL_ST_CODIGO")
    private String tilStCodigo;
    @Column(name="TIL_ST_DESCRICAO")
    private String tilStDescricao;

    public String getTilStCodigo() {
        return tilStCodigo;
    }

    public void setTilStCodigo(String tilStCodigo) {
        this.tilStCodigo = tilStCodigo;
    }

    public String getTilStDescricao() {
        return tilStDescricao;
    }

    public void setTilStDescricao(String tilStDescricao) {
        this.tilStDescricao = tilStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TiposLogradouroProteu other = (TiposLogradouroProteu) obj;
        if ((this.tilStCodigo == null) ? (other.tilStCodigo != null) : !this.tilStCodigo.equals(other.tilStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 59 * hash + (this.tilStCodigo != null ? this.tilStCodigo.hashCode() : 0);
        return hash;
    }



}
